package com.ruiyi.adrobot.domain;

import org.springframework.data.annotation.Id;

import java.util.LinkedList;
import java.util.List;

/**
 * Created by tao.zeng on 2017/5/12.
 */
public class Device extends Model {
    @Id
    private String imei; // 安卓设备唯一标识
    private String openId; // 安卓id
    private Integer provinceId; // 省份ID
    private Integer cityId; // 城市ID
    private List<Integer> usedFuns = new LinkedList<>(); // 使用过此设备的fun
    private String createDate;
    private List<Device> devices;
    private String excuteSimCode; // 仅作传值

    public String getExcuteSimCode() {
        return excuteSimCode;
    }

    public void setExcuteSimCode(String excuteSimCode) {
        this.excuteSimCode = excuteSimCode;
    }

    public List<Device> getDevices() {
        return devices;
    }

    public void setDevices(List<Device> devices) {
        this.devices = devices;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public static class AccountInfo {
        private Integer fun;
        private String userName;
        private String pwd;
        private String createDate;

        public AccountInfo() {
        }

        public AccountInfo(Integer fun, String userName, String pwd, String creteDate) {
            this.fun = fun;
            this.userName = userName;
            this.pwd = pwd;
            this.createDate = creteDate;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public Integer getFun() {
            return fun;
        }

        public void setFun(Integer fun) {
            this.fun = fun;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getPwd() {
            return pwd;
        }

        public void setPwd(String pwd) {
            this.pwd = pwd;
        }
    }

    public List<Integer> getUsedFuns() {
        return usedFuns;
    }

    public void setUsedFuns(List<Integer> usedFuns) {
        this.usedFuns = usedFuns;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}
